package com.songcha.module_main.api




import com.songcha.library_network.bean.BaseBean
import com.songcha.library_network.bean.BaseStringDataBean
import com.songcha.module_main.bean.calendar_task.CalendarTaskRecordBean
import com.songcha.module_memo.bean.wooden_fish.AddGongDeBean
import com.songcha.module_memo.bean.wooden_fish.QmyMedalBean
import com.songcha.module_memo.bean.wooden_fish.QmyRankBean
import com.songcha.module_memo.bean.wooden_fish.WoodenFishRecordBean
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface MainApiService {
    @POST("/api/token/getWoodenFish")
    fun getWoodenFishRecord():Observable<WoodenFishRecordBean>

    @GET("/api/token/addMeritsVirtues/{quantity}")
    fun addGongDe(@Path("quantity") quantity:Int):Observable<AddGongDeBean>

    @GET("/api/token/updateHighestHit/{quantity}")
    fun setMaxStrike(@Path("quantity") quantity:Int):Observable<BaseBean>

    @GET("/api/token/getRankingList")
    fun getQmyRankList():Observable<QmyRankBean>

    @GET("/api/token/getMedalList")
    fun getMyQmyMedalList():Observable<QmyMedalBean>

    @POST("/api/token/addFeedback")
    fun commitFeedback(@Body body:RequestBody):Observable<BaseBean>

    @POST("/api/token/updateEverydayRecord")
    fun updateCalendarTaskRecord(@Body body: RequestBody):Observable<BaseBean>

    @GET("/api/token/getEverydayRecord")
    fun getCalendarTaskRecord(@Query("date") date:String):Observable<CalendarTaskRecordBean>


}